import network from '@/common/network.js'
//企业信息-通过id查询
export const companyInfo =id =>{
  return network({
    url: `em-boot/biz/api/company/info?id=${id}`,
    auth: true,
  })
}

//修改企业风貌与视频
export const updateCompanyVideo =data =>{
  return network({
    url: 'em-boot/biz/api/company/updateCompanyVideo',
    data,
    method: 'post',
    auth: true,
  })
}

//职位信息-添加
export const addCompanyPosition =data =>{
  return network({
    url: 'em-boot/biz/api/company/addCompanyPosition',
    data,
    method: 'post',
    auth: true,
  })
}


//修改投递记录的面试状态--已面试
export const setDeliveryStatus =data =>{
  return network({
    url: 'em-boot/biz/api/company/setDeliveryStatus',
    data,
    method: 'post',
    auth: true,
  })
}

//职位投递详情
export const comDeliveryInfoDeliveryInfo =deliveryId =>{
  return network({
    url: `em-boot/biz/api/company/comDeliveryInfo?deliveryId=${deliveryId}`,
    auth: true,
  })
}


//公司下的职位信息-分页列表查询
export const companyPositionList =param =>{
  return network({
    url: 'em-boot/biz/api/emPosition/companyPositionList',
    param,
    auth: true,
  })
}
//邀请查看简历
export const companyInviteDelivery =data =>{
  return network({
    url: 'em-boot/biz/api/company/inviteDelivery',
    data,
    method: 'post',
    auth: true,
  })
}


//职位信息-编辑
export const editCompanyPosition =data =>{
  return network({
    url: 'em-boot/biz/api/company/editCompanyPosition',
    data,
    method: 'post',
    auth: true,
  })
}
